import {configureStore} from "@reduxjs/toolkit";
import useReducer, {UserStateType} from "./userRreducer";
import componentsReducer, {ComponentsStateType} from "./componentsReducer";

export type StateType = {
    user: UserStateType,
    components: ComponentsStateType
}

export default configureStore({
    reducer: {
        user: useReducer,
        components: componentsReducer
    },

});